#!/bin/sh
NAME=python3
echo $NAME
ID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
echo $ID
echo "---------------"
for id in $ID
do
kill -9 $id
echo "killed $id"
done
echo "---------------"


nohup python3 /opt/teach-manager-system-on-py/manage.py >> log.log &
